package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.PsThForm;

@RemoteServiceRelativePath("PeisongTuihuoService")
public interface PeisongTuihuoService extends RemoteService{
	public static class Util {
		private static PeisongTuihuoServiceAsync instance;

		public static PeisongTuihuoServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(PeisongTuihuoService.class);
			}
			return instance;
		}
	}

	public List<PsThForm> searchFanchangFormByOrgCodeAndDate(String orgCode, int level, String startDate, String endDate, String rz);

	public PsThForm getFormDetail(String billNo);

	public String deleteForm(String billNo);

	public String saveForm(PsThForm form, boolean isModify);

	public String bankForm(List<String> bills);

	public String getLastPsThBillNo(String orgCode);
}
